package com.cn.sl.server.common.annotation.transaction

import org.springframework.transaction.annotation.Propagation
import org.springframework.transaction.annotation.Transactional

/**
 * 只读事务
 *
 * @author 阮雪峰
 */
@Target(
    AnnotationTarget.FUNCTION,
    AnnotationTarget.PROPERTY_GETTER,
    AnnotationTarget.PROPERTY_SETTER,
    AnnotationTarget.CLASS
)
@Retention(
    AnnotationRetention.RUNTIME
)
@Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
annotation class ReadOnly 